/**
 * Copyright (C) 2012 The SkyTvOS Project
 * <p/>
 * Version     Date           Author
 * ─────────────────────────────────────
 * 2014年12月29日         cassie
 */

package com.coocaa.launcher.pattern.normal.util;

import com.coocaa.x.framework.data.JObject;


public class LayoutExtra extends JObject {
    private int position;
    private boolean preseted = false;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        LayoutExtra that = (LayoutExtra) o;

        return position == that.position;

    }

    @Override
    public int hashCode() {
        int result = position;
        result = 31 * result + (preseted ? 1 : 0);
        return result;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public boolean getPreseted() {
        return preseted;
    }

    public void setPreseted(boolean preseted) {
        this.preseted = preseted;
    }
}
